pull-local: Make multithreaded
authorColin Walters <walters@verbum.org>
Mon, 19 Nov 2012 16:35:30 +0000 (11:35 -0500)
committerColin Walters <walters@verbum.org>
Mon, 19 Nov 2012 17:08:41 +0000 (12:08 -0500)
commit05e7b6d5964540429ba0346212b635b738caa35f
treebd40d426d9d11112653ca79b49e81a0a4248b41c
parentde1ce843f13a4c3fd201305785161f46946d8a32
pull-local: Make multithreaded

We were blocking for easily 1/10 or 1/5 of a second in fdatasync(),
which drastically slows down the whole process.

This threading isn't quite as good as the ostree-pull command, but it
lets us avoid the dependency on libsoup everywhere, and it's simpler.
src/libotutil/ot-spawn-utils.c
src/libotutil/ot-spawn-utils.h
src/ostree/ot-builtin-pull-local.c